package com.tl.boot.common.utils;

import java.util.HashSet;
import java.util.List;

/**
 * com.tl.boot.common.utils -- CollectionUtil
 * Description:
 * Created by joshua_liu <a href="mailto:joshualwork@163.com"></a>
 * On 2019/9/12 16:34
 */
public class CollectionUtil {
    public static List removeDuplicate(List list) {
        HashSet h = new HashSet(list);
        list.clear();
        list.addAll(h);
        return list;
    }
}
